<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>json\</title>
    <script>
        let weather ={
            city :"北京",
            shidu :"22%"
        };``
        let j=JSON.stringify(weather);
        alert(j)
        let weather2=JSON.parse(j);
        document.write(weather2.city+","+weather2.shidu);
    </script>
</head>
<body>


</body>
</html>